<?php

namespace App\Http\Models\Dist;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Foundation\Auth\User as Authenticatable;

/**
 * Class Admin
 * 作为后台登录模型，也需要有验证功能。
 * 借鉴默认 User 模型，添加父类 use Illuminate\Foundation\Auth\User。
 * 且，暂时不使用 trait use Illuminate\Notifications\Notifiable; 查看是否能实现目的。
 * 
 * @package App\Models
 */
class Admin extends Authenticatable
{
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'username', 'email', 'password', 'mobile'
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];
}
